package com.miao.common.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 收货地址表(Address)表实体类
 *
 * @author MiaoWenqing
 * @since 2021-02-02 22:23:08
 */
@SuppressWarnings("serial")
public class Address extends Model<Address> {
    //地址id
    @TableId(type = IdType.ASSIGN_ID)
    private String addrId;
    //收货人姓名
    private String addrConsignee;
    //收货手机号
    private String addrTel;
    //邮政编码
    private String addrPost;
    //地址类型  标记是否为默认
    //0普通
    //1默认
    private Boolean addrType;
    //省份/直辖市
    private String addrProvince;
    //城市
    private String addrCity;
    //区/县
    private String addrDistrict;
    //街道/乡镇
    private String addrTowns;
    //详细地址
    private String addrDetailed;
    //消费者id
    private Integer cusId;


    public String getAddrId() {
        return addrId;
    }

    public void setAddrId(String addrId) {
        this.addrId = addrId;
    }

    public String getAddrConsignee() {
        return addrConsignee;
    }

    public void setAddrConsignee(String addrConsignee) {
        this.addrConsignee = addrConsignee;
    }

    public String getAddrTel() {
        return addrTel;
    }

    public void setAddrTel(String addrTel) {
        this.addrTel = addrTel;
    }

    public String getAddrPost() {
        return addrPost;
    }

    public void setAddrPost(String addrPost) {
        this.addrPost = addrPost;
    }

    public Boolean getAddrType() {
        return addrType;
    }

    public void setAddrType(Boolean addrType) {
        this.addrType = addrType;
    }

    public String getAddrProvince() {
        return addrProvince;
    }

    public void setAddrProvince(String addrProvince) {
        this.addrProvince = addrProvince;
    }

    public String getAddrCity() {
        return addrCity;
    }

    public void setAddrCity(String addrCity) {
        this.addrCity = addrCity;
    }

    public String getAddrDistrict() {
        return addrDistrict;
    }

    public void setAddrDistrict(String addrDistrict) {
        this.addrDistrict = addrDistrict;
    }

    public String getAddrTowns() {
        return addrTowns;
    }

    public void setAddrTowns(String addrTowns) {
        this.addrTowns = addrTowns;
    }

    public String getAddrDetailed() {
        return addrDetailed;
    }

    public void setAddrDetailed(String addrDetailed) {
        this.addrDetailed = addrDetailed;
    }

    public Integer getCusId() {
        return cusId;
    }

    public void setCusId(Integer cusId) {
        this.cusId = cusId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.addrId;
    }
}